package model.evaluate.service.impl;

import model.evaluate.entity.Evaluate;
import model.evaluate.mapper.EvaluateMapper;
import model.evaluate.service.IEvaluateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class EvaluateServiceImpl implements IEvaluateService {

    @Autowired
    private EvaluateMapper evaluateService;

    @Override
    public void save(Evaluate evaluate) {
        evaluateService.save(evaluate);
    }

    @Override
    public void del(String evaluateUsername) {
        evaluateService.del(evaluateUsername);
    }

    @Override
    public void update(Evaluate evaluate) {
        evaluateService.update(evaluate);
    }

    @Override
    public List<Evaluate> findAll() {

        return evaluateService.findAll();
    }

    @Override
    public Evaluate findById(String evaluateId) {
        return evaluateService.findById(evaluateId);
    }




}
